package com.htdc.web.bean;


import java.io.Serializable;
import java.util.List;

public class ProjectTb implements Serializable {

  private long pid;
  private String pname;
  private String address;
  private long cid;
  private double totalArea;
  private double totalRealArea;
  private double totalRealRentArea;
  private double pTotalMoney;
  private double pTotalRealMoeny;
  private String collection;
  private List<Room> rooms;

  public ProjectTb() {
  }

  public ProjectTb(String pname, String address, long cid) {
    this.pname = pname;
    this.address = address;
    this.cid = cid;
  }

  public ProjectTb(int pid, String pname, String address, long cid) {
    this.pid = pid;
    this.pname = pname;
    this.address = address;
    this.cid = cid;
  }


  public ProjectTb(long pid, String pname, String address, long cid, double totalArea, double totalRealArea, double totalRealRentArea, double pTotalMoney, double pTotalRealMoeny, String collection, List<Room> rooms) {
    this.pid = pid;
    this.pname = pname;
    this.address = address;
    this.cid = cid;
    this.totalArea = totalArea;
    this.totalRealArea = totalRealArea;
    this.totalRealRentArea = totalRealRentArea;
    this.pTotalMoney = pTotalMoney;
    this.pTotalRealMoeny = pTotalRealMoeny;
    this.collection = collection;
    this.rooms = rooms;
  }


  public void setPid(long pid) {
    this.pid = pid;
  }

  public double getpTotalMoney() {
    return pTotalMoney;
  }

  public void setpTotalMoney(double pTotalMoney) {
    this.pTotalMoney = pTotalMoney;
  }

  public double getpTotalRealMoeny() {
    return pTotalRealMoeny;
  }

  public void setpTotalRealMoeny(double pTotalRealMoeny) {
    this.pTotalRealMoeny = pTotalRealMoeny;
  }

  public void setCollection(String collection) {
    this.collection = collection;
  }

  public List<Room> getRooms() {
    return rooms;
  }

  public long getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }


  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public long getCid() {
    return cid;
  }

  public void setCid(long cid) {
    this.cid = cid;
  }


  public double getTotalArea() {
    return totalArea;
  }

  public void setTotalArea(double totalArea) {
    this.totalArea = totalArea;
  }


  public double getTotalRealArea() {
    return totalRealArea;
  }

  public void setTotalRealArea(double totalRealArea) {
    this.totalRealArea = totalRealArea;
  }


  public double getTotalRealRentArea() {
    return totalRealRentArea;
  }

  public void setTotalRealRentArea(double totalRealRentArea) {
    this.totalRealRentArea = totalRealRentArea;
  }


  public double getPTotalMoney() {
    return pTotalMoney;
  }

  public void setPTotalMoney(double pTotalMoney) {
    this.pTotalMoney = pTotalMoney;
  }


  public double getPTotalRealMoeny() {
    return pTotalRealMoeny;
  }

  public void setPTotalRealMoeny(double pTotalRealMoeny) {
    this.pTotalRealMoeny = pTotalRealMoeny;
  }


  public String getCollection() {
    return collection;
  }

  public void setRooms(List<Room> rooms) {
    this.rooms = rooms;
  }

  @Override
  public String toString() {
    return "ProjectTb{" +
            "pid=" + pid +
            ", pname='" + pname + '\'' +
            ", address='" + address + '\'' +
            ", cid=" + cid +
            ", totalArea=" + totalArea +
            ", totalRealArea=" + totalRealArea +
            ", totalRealRentArea=" + totalRealRentArea +
            ", pTotalMoney=" + pTotalMoney +
            ", pTotalRealMoeny=" + pTotalRealMoeny +
            ", collection='" + collection + '\'' +
            ", rooms=" + rooms +
            '}';
  }
}
